{template 'user/head.html'}
<div id="position">
<a href="javascript :history.back(-1)" title="返回上一页"><img alt="返回上一页" src="{$base_url}/images/user/undo.gif" style="float:right;" /></a>当前位置：内容管理
</div>

<div class="padding10">
<img src="{$base_url}/images/user/wj.gif" style="margin-right:10px;" />欢迎来到编辑内容页面。您可以编辑修改网站内容，展示网站信息。
</div>

<div class="blank10"></div>

<script type="text/javascript" src="{$base_url}/common/js/list.js"></script>
<script language="javascript" src="{$base_url}/common/js/common.js"></script>

<form name="searchform" id="searchform"  action="<?php echo uri();?>" method="post">
<table border="0" cellspacing="0" cellpadding="4" class="list" name="table" id="table">
<thead>
  <tr>
  <th  colspan="11">
   内容管理<?php if(front::get('deletestate')) {?>(回收站)<?php } ?>
    </th></tr>
     </thead>
<tbody>
    <tr>
    <td colspan="8">
	<table><tr><td>
类别：</td><td>
    <?php echo form::select('_typeid',get('_typeid')?get('_typeid'):0,type::option()); ?>
        </td><td>
    标题:</td><td>
    <input type="text" name="_title" id="_title" value=""  />    </td><td>
    <input type="submit" value="搜索" name="submit"  onclick="this.form.action='{url::modify('table/'.get('table'))}'" class="button"/>
    </td></tr>
    </tbody>
</table></td>
<td width="200">
<a href="{get('site_url')}index.php?case=manage&act=add&manage=archive" class="button">添加内容</a>
</td>
</tr>
    
    </tbody>
</form>


<form name="listform" id="listform"  action="<?php echo uri();?>" method="post">

  
<thead>
        <tr>
           <th align="center" width="60"><input title="点击可全选本页的所有项目"  onclick="CheckAll(this.form)" type="checkbox" name="chkall" class="checkbox" /> 全选</th>
          <th align="center"><!--aid-->编号</th>
          <th align="center"><!--typeid-->所属类别</th>
          <th align="center"><!--title-->标题</th>
          <th align="center"><!--username-->用户名</th>
          <th align="center"><!--view-->浏览</th>
          <th align="center"><!--adddate-->添加时间</th>
          <th align="center"><!--checked-->审核</th>
          <!--<th align="center"><!--linkto--><!--外部链接</th>-->
          <th align="center">操作</th>
        </tr>
</thead>
<tbody>

{loop $data $d}
<tr class="s_out" onmouseover="m_over(this)" onmouseout="m_out(this)">

<td align="center" ><input onclick="c_chang(this)" type="checkbox" value="{$d.$primary_key}" name="select[]" class="checkbox" /> </td>

<td>{cut($d['aid'])}</td>
<td>    <a href="<?php echo url("archive/list/typeid/".$d[typeid],false);?>" target="_blank">{typename($d['typeid'])}</a></td>
<td>{cut($d['title'])}</td>
<td>{cut($d['username'])}</td>
<td>{cut($d['view'])}</td>
<td>{cut($d['adddate'])}</td>
<td>{helper::yes($d['checked'])}</td>
<!-- <td>{helper::showlinkto($d['linkto'])}</td> -->

<td align="center">
<a href='<?php if($d['linkto'])   echo $d['linkto']; else echo url("archive/show/aid/$d[$primary_key]",false);?>' target="_blank" title="查看动态页面">查看</a>
<a href="index.php?case=manage&act=edit&manage=archive&id={$d[$primary_key]}">编辑</a> <a onclick="javascript: return confirm('确实要删除吗?');" href="index.php?case=manage&act=delete&manage=archive&id={$d[$primary_key]}">删除</a>
</td>
</tr>
{/loop}


      </tbody>
    </table>


<div class="blank20"></div>


</form>


<div class="page"><?php if(get('table')!='type' && front::get('case')!='field') echo pagination::html($record_count); ?></div>
{template 'user/foot.html'}